/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 说明：
 * Entity Name 我的消息
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TMyMessage")
public class TMyMessage {

	private String MyMessageID;//消息编号
	
	private byte Type;//消息类型 10为商家确认了订单11为您的订单商家已发货12为您的评论商家已回复16为加商家会员18为商家确认为预定   当消息类型为不同编号时，想送编号字段中放置的是相关编号，比如说订单编号
	
	private Date SendTime;//发送时间
	
	private String Content;//消息内容
	
	private byte Status;//状态  1为未读 2为已读
	
	private String RelatedID;//相关编号 Char(15)
	
	private TUser TUser;//用户

	@Id
	@Column(name = "MyMessageID", length=15)
	public String getMyMessageID() {
		return MyMessageID;
	}

	public void setMyMessageID(String myMessageID) {
		MyMessageID = myMessageID;
	}

	@Column(name = "Type")
	public byte getType() {
		return Type;
	}

	public void setType(byte type) {
		this.Type = type;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "SendTime", nullable = false, length = 19)
	public Date getSendTime() {
		return SendTime;
	}

	public void setSendTime(Date sendTime) {
		this.SendTime = sendTime;
	}
	@Column(name = "Content", length=1024)
	public String getContent() {
		return Content;
	}

	public void setContent(String content) {
		Content = content;
	}
	@Column(name = "Status")
	public byte getStatus() {
		return Status;
	}

	public void setStatus(byte status) {
		Status = status;
	}
	@Column(name = "RelatedID", length=15)
	public String getRelatedID() {
		return RelatedID;
	}

	public void setRelatedID(String relatedID) {
		RelatedID = relatedID;
	}
	@ManyToOne
	@JoinColumn(name="UserID")
	public TUser getTUser() {
		return TUser;
	}

	public void setTUser(TUser tUser) {
		TUser = tUser;
	}
}
